package com.byedu.mapper.focus;

import com.byedu.domain.course.WeiXinUserDO;
import com.byedu.domain.focus.FocusUserDO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by jason on 2017/5/14.
 */
@Repository
public interface FocusUserMapper {
    /**
     * @description 更新
     * @author chenxigui
     * @date  2017-05-14
     * @param focusUserDO
     * @return
     */
    Integer updateFocusUserDObyUserId(FocusUserDO focusUserDO);

    /**
     * @description 查询用户
     * @author chenxigui
     * @date  2017-05-14
     * @param focusUserDO
     * @return
     */
    FocusUserDO checkFocusUser(FocusUserDO focusUserDO);

    FocusUserDO getsendFocusUser(FocusUserDO focusUserDO);

    /**
     * @description 查询用户
     * @author chenxigui
     * @date  2017-05-14
     * @param userId
     * @return
     */
    FocusUserDO getFoucUserByUserId(String userId);

    List<FocusUserDO> getFocusUserbydapartList(int depart);

    Integer addFocusUser(FocusUserDO focusUserDO);

    Integer delFocusUser(FocusUserDO focusUserDO);

    List<FocusUserDO> getFoucUserList();

    List<FocusUserDO> getFocusUserListbypermission(int permission);

    List<FocusUserDO> getFocusUserListbyName(String key);

    List<FocusUserDO> getFocusUserListbypermissionpr(int permission);
}
